package com.bawei.login.model

import com.bawei.login.api.AccountServerApi
import com.bawei.login.entity.UserEntity
import com.bawei.network.BaseResponse
import javax.inject.Inject

/**
 * Author: Jason Zhang
 * Date: 2025/2/13
 * Desc:
 */
class AccountRepository @Inject constructor(private val apiServer: AccountServerApi){

    suspend fun loginToServer(userName: String, password: String): BaseResponse<UserEntity>{
        return apiServer.userLogin(userName, password)
    }

    suspend fun registerToServer(userName: String, password: String): BaseResponse<UserEntity>{
        return apiServer.userRegister(userName, password)
    }





}